#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged

if git diff --cached --name-only | grep -E '\.eslintrc\.cjs$'
then
  echo "Do not modify the shared .eslintrc.cjs file arbitrarily. If you need to ignore a specific issue, please disable it on a single line or file basis, rather than affecting the global settings."
  exit 1
fi